<template>
  <el-dialog title="区域详情" :visible="Visible" width="630px"  @close="closeFn">
    <span>
      <div class="title">
        <p>区域名称：</p>
        <p>{{ region.name }}</p>
      </div>
      <div class="xqcontene">
        <p>包含点位：</p>
        <div class="qyTabel">
          <el-table :data="qyxqList" style="width: 100%">
            <el-table-column prop="date" label="序号" width="90" type="index">
            </el-table-column>
            <el-table-column prop="name" label="点位名称" >
            </el-table-column>
            <el-table-column prop="vmCount" label="设备数量" width="150"> </el-table-column>
          </el-table>
        </div>
      </div>
    </span>
    <span slot="footer" class="dialog-footer"> </span>
  </el-dialog>
</template>

<script>
export default {
  props: {
    Visible: {
      type: Boolean,
      required: true
    },
    qyxqList: {
      type: Array,
      required: true
    },
    region: {
      type: Object,
      required: true
    }

  },
  data () {
    return {

    }
  },
  created () {

  },
  mounted () {

  },
  methods: {
    closeFn () {
      this.$emit('update:Visible', false)
    }

  }
}
</script>
<style lang="less" scoped>
/deep/.el-dialog {
  position: relative;
  margin: 0 auto 50px;
  background: #fff;
  border-radius: 12px;
  box-sizing: border-box;
  padding-bottom: 20px;
 min-height:250px;
  width: 50%;
  .el-dialog__title {
    font-size: 18px;
    font-weight: 900;
    color: #333;
  }
  .el-dialog__body {
    // padding: 20px 20px 0;

    .title {
      display: flex;
      align-items: center;
      padding-left: 60px;
      margin-bottom:15px ;
      p {
        margin-right: 10px;
        // width: 140px;
        height: 36px;
        line-height: 36px;
        font-size: 14px;
        color: #666666;
      }
    }
    .xqcontene {
      display:flex ;
      align-items: center;
      // margin-bottom: 20px;
      padding-left: 60px;
      font-size: 14px;
      color: #666666;
      p{
        margin-right: 10px;

      }
      .qyTabel {
        width: 396px;
        min-height: 44px;
        .el-table th{
          background-color: #f3f6fb;

          .el-table tr{
            background-color:#fcfdfe;

          }
        }
      }
    }
  }
}
</style>
